-
-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][FIX]mail_activity_done: Fix counters and activity_state search #1507
base: 16.0
Are you sure you want to change the base?
Conversation
In odoo 16 the systray_get_activities function uses the ORM, there is no need to override it.
ea4838f
to
df64eed
Compare
Fixed tests. |
df64eed
to
9ab7f24
Compare
I have detected a new bug, the _read_progress_bar inherit was not properly working and the count of activities in the kanban view was wrong. We should modify the subquery where clause |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you'll have to update the test too - I think it's correct to expect a 0 here
1f68c55
to
1f6bc04
Compare
Seems a problem with the tests because the function executes the query directly. Testing in shell, if i make the commit after the _action_done, the result is 0. It also happens in the test_activity_state_search. I changed the tests to move the second activity to demo file, assigned to another partner, and created already done. |
This PR includes 2 changes:
and mail_activity.done=False
to WHERE clause in the query to allow properly search by this field.Fixes: #1327 CC: @gurneyalex @navarrorico